<?php
namespace app\index\controller;

use app\lib\redis\Redis;
use think\Exception;

class Index
{
    public function index()
    {
        return "<a href='http://www.1miaodao.cn'>秒讯科技008</a>";

//        $cron = new \app\common\command\Cron();
//        $cron->doCron();

        /*$Redis = Redis::getRedisConn();
        $smsObj = new \app\lib\Sms();
        $meetingData = $Redis->LRange('meeting_mobile_list',0,-1);
        dump($meetingData);
        foreach ($meetingData as $data){
            $data = json_decode($data,true);
            dump($data);

            $message = '';
            $message .= "会议提醒：\n会议主题：" . $data['title'] . "\n";
            $message .= '会议开始时间：' . date('Y-m-d H:i', $data['startTime']) . "\n";
            $message .= '会议地点：' . $data['address']. "\n";
            $message .= '请务必准时参加 【智慧乡镇】';

            dump($message);
            $smsRes = $smsObj->sendMess($data['mobile'], $message);
            dump($smsRes);
        }
        exit;*/
    }

}
